package com.example.ndkjnidemo.home.crash;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.ndkjnidemo.databinding.ActivityCrashBinding;

/**
 *
 */
public class CrashActivity extends AppCompatActivity {

    private static final String TAG = "CrashActivity";
    private ActivityCrashBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityCrashBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        //===
        onJniCrash();
    }

    public void onJniCrash() {
        new JNICrash().crash();
    }
}